package com.itheima.service;

import com.itheima.domain.Book;

import java.util.List;

public interface BookService {
    List<Book> findAll();

    /**
     * 保存
     *
     * @param book
     * @return
     */
    public boolean save(Book book);

    /**
     * 修改
     *
     * @param book
     * @return
     */
    public boolean update(Book book);

    /**
     * 按id删除
     *
     * @param id
     * @return
     */
    public boolean delete(Integer id);


    Book findById(Integer id);
}
